def test1():
    print('我是test1---')


def test2():
    print('我是test2---')


def test3():
    test1()
    print('我是test3---')
    test2()


test3()


def is_leap_year(year):
    if year % 400 == 0 or (year % 4 == 0 and year % 100 != 0):
        return True
    else:
        return False


def get_day2(year, month):
    # pass
    # year 影响二月份天数
    # 如果是闰年,二月 29
    #         平年,    28
    day = 0
    if is_leap_year(year):  # NameError: name 'is_leap_year2' is not defined
        # 这年就是闰年
        if month == 2:
            day = 29
    else:
        # 不是闰年
        if month == 2:
            day = 28
    list1 = [1, 3, 5, 7, 8, 10, 12]
    list2 = [4, 6, 9, 11]

    if month in list1:
        day = 31
    elif month in list2:
        day = 30

    return day


print(get_day2(2000, 2))


def is_leap_year2(year):
    if year % 400 == 0 or (year % 4 == 0 and year % 100 != 0):
        return True
    return False
